package com.wtb.javatool.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wtb.javatool.dao.StudentMapper;
import com.wtb.javatool.entity.Homework;
import com.wtb.javatool.entity.Student;
import com.wtb.javatool.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper,Student> implements StudentService {
    @Autowired
    private StudentMapper studentMapper;
    @Override
    public List<Student> getStudentByUserId(Long userId) {
        return studentMapper.getStudentByUserId(userId);
    }
}
